package cn.bfay.lion.rest.redis;

import cn.bfay.cache.redis.RedisKeyBuilder;
import cn.bfay.cache.redis.RedisUtils;

/**
 * RedisValueHelper.
 *
 * @author wangjiannan
 * @since 2019/11/15
 */
public class RedisValueHelper {
    /**
     * 获取wechat access token.
     *
     * @return string
     */
    public static String getAccessToken() {
        String redisKey = RedisKeyBuilder.generateRedisKey(RedisKeyTemplate.WECHAT_TOKEN_TEMPLATE);
        return RedisUtils.getValue(redisKey);
    }
}
